<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<title>系统页面配置</title>
<head th:replace="system/inc/incHead :: incHead"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content no-padding">
    <form id="pagerForm" action="/sys/page/config" method="get">
        <input type="hidden" id="pageNum" name="pageNum" value="1"/>
        <input type="hidden" name="numPerPage" th:value="${page.numPerPage}"/>
        <input type="hidden" name="orderField" th:value="${orderField}"/>
        <input type="hidden" name="orderDirection" th:value="${orderDirection}"/>
        <div class="ibox no-margins no-padding no-borders">
            <div class="ibox-title no-margins no-padding no-borders">
                <div class="row p-xs ljRowSearch">
                    <div class="form-group col-md-2">
                        <div class="input-group m-l-sm">
                            <span class="input-group-addon">所属系统:</span>
                            <input name="systemCode" type="text" class="form-control input-sm"
                                   th:value="${systemCode}">
                        </div>
                    </div>
                    <div class="form-group col-md-2">
                        <div class="input-group m-l-sm">
                            <span class="input-group-addon">登录用户:</span>
                            <input name="userId" type="text" class="form-control input-sm"
                                   th:value="${userId}">
                        </div>
                    </div>
                    <div class="form-group col-md-2">
                        <div class="input-group m-l-sm">
                            <span class="input-group-addon">所属页面:</span>
                            <input name="pageCode" type="text" class="form-control input-sm"
                                   th:value="${pageCode}">
                        </div>
                    </div>
                    <button class="btn btn-success btn-sm pull-right btnPagerForm" type="button"><i class="fa fa-search">重新检索</i></button>
                </div>
            </div>
        </div>
    </form>
    <div class="ibox no-margins">
        <div class="ibox-content p-xs ljScrollbar3" style="overflow:auto;" layoutH="105">
            <table id="listTable"
                   class="table table-striped table-bordered table-hover table-responsive lj-table-nowrap no-margins">
                <thead>
                <tr>
                    <th th:if="${@lj.limit('SysPageConfigDetail')>0}" style="min-width:60px;">详情</th>
                    <th style="min-width:60px;">编号</th>
                    <th style="min-width:100px;">所属系统</th>
                    <th style="min-width:100px;">登录用户</th>
                    <th style="min-width:100px;">所属页面</th>
                    <th style="min-width:100px;">页面配置</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${records}" class="warning">
                    <th th:if="${@lj.limit('SysPageConfigDetail')>0}" style="min-width:60px;">
                        <div class="btn btn-xs btn-success" th:ljUrl="|/sys/page/config/detail?id=${item.id}|"
                             title="系统页面配置详情" target="ljOpenCon">
                            <i class="fa fa-paste">详情</i>
                        </div>
                    </th>
                    <td style="min-width:60px;">[[${item.id}]]</td>
                    <td style="min-width:100px;">[[${item.systemCode}]]</td>
                    <td style="min-width:100px;">[[${item.userId}]]</td>
                    <td style="min-width:100px;">[[${item.pageCode}]]</td>
                    <td style="min-width:100px;" th:text="${item.pageConfig}"></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div th:replace="system/inc/incBottom :: incBottom"></div>
<div th:replace="system/inc/incPage :: incPage"></div>
<script>
    jQuery(function ($) {
        $(".chosen-select").chosen();
    });
</script>
</body>
</html>
